%ul.user-panel
  - if user_signed_in?
    %li.avatar
      = image_tag current_user.avatar.url(:thumb)
    %li.name
      = current_user.full_name
    %li.actions
      = link_to "Профиль", edit_user_registration_path, :class => "btn primary small"
      = link_to "Выйти", destroy_user_session_path, :method => :delete, :class => "btn small"
  - else
    %li.avatar
      = image_tag image_path("icons/anonymous_thumb.png"), :alt => ""
    %li.name Привет, Гость
    %li.actions
      = link_to "Войти", new_user_session_path, :class => "btn primary"